/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.upf.grupof.projectphotos.clientsim;

import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author fredi
 */
public class probes {
    public static void main(String[] args){
        String text = "hola adeu tres";
        String type="consulta.foto.keyword";
        List<String> l= new LinkedList<String>();
        int fin=0;
        int inici=0;
        
        while(fin<text.length()){
            if(text.charAt(fin)==' '){
                l.add(text.substring(inici, fin));
                fin++;
                inici=fin;
            } else {
                fin++;
            }
        }
        l.add(text.substring(inici, fin));
    }
}
